﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;

namespace DailyBread
{
    [DataContract()]
    public class CommentCollection
    {
        [DataMember]
        public string userId { get; set; }
        [DataMember]
        public DailyVerse verse { get; set; }
        [DataMember]
        public Collection<Comment> comments { get; set; }
    }

    [DataContract()]
    public class Comment
    {
        [DataMember]
        public string commentString { get; set; }
        [DataMember]
        public DateTime timestamp { get; set; }
        public string PartitionKey { get; set; }
        public string RowKey { get; set; }


        public Comment(string partitionKey, string rowKey, string comment, DateTime ts)
        {
            PartitionKey = partitionKey;
            RowKey = rowKey;
            commentString = comment;
            timestamp = ts;
        }
    }
}
